package client.dao.mapper;


import client.controller.param.ActivityUser;
import client.controller.param.DrawPrizesData;
import client.server.dto.ActivityUserDto;
import client.server.enums.ActivityStatusEnum;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ActivityUserMapper {

    void insert(ActivityUserDto ad);

    List<ActivityUser> getUsers(Integer activityId);

    List<ActivityUserDto> selectUsersById(Long activityId);

    List<ActivityUserDto> getUsersByAUIds(Long activityId, List<Long> winnerList);

    Integer updateStatus(DrawPrizesData param, List<Long> winners, ActivityStatusEnum status);

}
